package com.jeesite.modules.jdProduct.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 测试数据Entity
 * 
 * @author ThinkGem
 * @version 2018-04-22
 */
@Table(name = "jd_product", alias = "a", columns = {
		@Column(name = "id", attrName = "id", label = "编号", isPK = true),
		@Column(name = "sku", attrName = "sku", label = "分类名称", queryType = QueryType.LIKE),
		
		@Column(name = "weight", attrName = "weight", label = "状态"),
		@Column(name = "state", attrName = "state", label = "状态"),
		@Column(name = "brand_name", attrName = "brandName", label = "状态"),
		@Column(name = "name", attrName = "name", label = "状态"),
		@Column(name = "product_area", attrName = "productArea", label = "状态"),
		@Column(name = "upc", attrName = "upc", label = "状态"),
		@Column(name = "sale_unit", attrName = "saleUnit", label = "状态"),
		@Column(name = "image_path", attrName = "imagePath", label = "状态"),
		@Column(name = "ware_qd", attrName = "wareQD", label = "状态"),
		@Column(name = "introduction", attrName = "introduction", label = "状态"),
		@Column(name = "param", attrName = "param", label = "状态"),
		@Column(name = "shouhou", attrName = "shouhou", label = "状态"),
		@Column(name = "appintroduce", attrName = "appintroduce", label = "状态"),
		@Column(name = "category", attrName = "category", label = "状态"),
		
		@Column(name = "status", attrName = "status", label = "状态"),
		@Column(name = "page_num", attrName = "pageNum", label = ""),
		@Column(name = "create_date", attrName = "createDate", label = "创建时间"), }, orderBy = "a.page_num asc,a.sku asc,a.create_date DESC")
public class Product extends DataEntity<Product> {

	private static final long serialVersionUID = 1L;
	private Integer sku;//商品编号

	private String status;
	
	private String weight;//重量
	private String productArea;//产地
	private String upc;//条形码
	
	private Integer state;//上架状态
	private String brandName;//品牌
	private String name;//商品名
	
	
	private String saleUnit;//销售单位
	private String imagePath;//封面图 
	private String wareQD;//描述
	private String introduction;
	private String param;//规格参数
	private String shouhou;//售后
	private String appintroduce;//详情
	private String category;//分类类型
	
	private String pageNum;//商品池
	
	@JsonIgnore
	private Date createDate;
	@JsonIgnore
	private String updateBy;
	@JsonIgnore
	private String createBy;
	@JsonIgnore
	private Date updateDate;
	
	@JsonIgnore
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public String getWeight() {
		return weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getBrandName() {
		return brandName;
	}

	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getProductArea() {
		return productArea;
	}

	public void setProductArea(String productArea) {
		this.productArea = productArea;
	}

	public String getUpc() {
		return upc;
	}

	public void setUpc(String upc) {
		this.upc = upc;
	}

	public String getSaleUnit() {
		return saleUnit;
	}

	public void setSaleUnit(String saleUnit) {
		this.saleUnit = saleUnit;
	}

	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	public String getWareQD() {
		return wareQD;
	}

	public void setWareQD(String wareQD) {
		this.wareQD = wareQD;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public String getParam() {
		return param;
	}

	public void setParam(String param) {
		this.param = param;
	}

	public String getShouhou() {
		return shouhou;
	}

	public void setShouhou(String shouhou) {
		this.shouhou = shouhou;
	}

	public String getAppintroduce() {
		return appintroduce;
	}

	public void setAppintroduce(String appintroduce) {
		this.appintroduce = appintroduce;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public Integer getSku() {
		return sku;
	}

	public void setSku(Integer sku) {
		this.sku = sku;
	}

	public String getPageNum() {
		return pageNum;
	}

	public void setPageNum(String pageNum) {
		this.pageNum = pageNum;
	}

}